from django import forms
from tussin.news.models import Article

class ArticleForm(forms.ModelForm):

    class Meta:
        model = Article
        widgets = {
            'summary': forms.Textarea(attrs={'rows': 5, 'cols': 50}),
            'content': forms.Textarea(attrs={'class': 'ckeditor'}),
        }
